Problem/Motivation

After installing this module, click the facebook share button, a window will pop up directly, and then jump to a url, I want to jump directly to the url without a pop-up window

Steps to reproduce

1. Install the module
2. Place the block provided by the module in the block layout
3. Click the facebook share button on the page

Proposed resolution

Any

Remaining tasks

none

User interface changes

none

API changes

none

Data model changes

none

Tips

Use the following code, placed in the module's Inside Additional JavaScript

 // A custom "onShare" handler for AddToAny
function onShare(share_data) {
 // Disable popup share
 share_data.node.a2a.popup = 0
}

// Setup AddToAny "onShare" callback function
var a2a_config = a2a_config || {};
a2a_config.callbacks = a2a_config.callbacks || [];
a2a_config.callbacks.push({
 share: onShare,
});

Comments

[email protected] created an issue.